/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package interfaz;

import java.awt.Button;
import java.awt.Frame;
import java.awt.GridBagLayout;
import java.awt.GridLayout;
import java.awt.Label;
import java.awt.Panel;
import java.awt.TextField;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;

/**
 *
 * @author Administrador
 */
public class activacion {
    public static void main(String[] args) {
        Frame f=new Frame("Activacio pendejo");

        TextField tf=new TextField("                       ");
        TextField tf1=new TextField("                       ");
        Button b=new Button("Activame");
        Button b1=new Button("despues");
        Label l=new Label("Activame por no seas pirata");
        Label l2=new Label("Nombre del usuario");
        Label l3=new Label("Clave de activacion");
   Panel p=new Panel();
   Panel p2=new Panel();
   Panel p3=new Panel();
   Panel p4=new Panel();
   f.setLayout(new GridLayout(4,1));
   f.add(p);
   f.add(p2);
   f.add(p3);
   f.add(p4);
   p.add(l);
   p2.add(l2);
   p2.add(tf);
   p3.add(l3);
   p3.add(tf1);
   p4.add(b);
   p4.add(b1);
   b.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
               Main m=new Main();
               m.ventana();
            }
        });
        b1.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
System.exit(0);
            }
        });
   f.addWindowListener(new WindowListener() {

            public void windowOpened(WindowEvent e) {
            }

            public void windowClosing(WindowEvent e) {
            System.exit(0);
            }

            public void windowClosed(WindowEvent e) {

            }

            public void windowIconified(WindowEvent e) {
            }

            public void windowDeiconified(WindowEvent e) {
            }

            public void windowActivated(WindowEvent e) {
            }

            public void windowDeactivated(WindowEvent e) {
            }
        });
        f.setResizable(false);
        f.setSize(600, 200);
        f.setVisible(true);
    }
}
